<ui:composition template="../templates/3-layoutTemplate.xhtml" xmlns="http://www.w3.org/1999/xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:p="http://primefaces.org/ui"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:c="http://java.sun.com/jsp/jstl/core">

    <ui:define name="content-middle">
        <h:form id="form">  

            <h1>Hi This is test page</h1>

            <script type="text/x-mathjax-config">
                //<![CDATA[                
                MathJax.Hub.Config({
                extensions: ["tex2jax.js"],
                jax: ["input/TeX","output/HTML-CSS"],
                tex2jax: {inlineMath: [["$","$"],["\\(","\\)"]]}
                });
                //]]>    
            </script>


        <p>Finally, while displaying equations is useful for demonstration purposes, the ability to mix math and text in a paragraph is also important. 
    This expression <span class="math-tex">\(\sqrt{3x-1}+(1+x)^2\)</span> is an example of an inline equation. As you see, MathJax equations can 
    be used this way as well, without disturbing the spacing between the lines.</p>

            <p>
                When $a \ne 0$, there are two solutions to \(ax^2 + bx + c = 0\) and they are
                $$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$$
            </p>

            <h2>The Cauchy-Schwarz Inequality, also example of in line equation</h2>

            <p>\(
                \left( \sum_{k=1}^n a_k b_k \right)^{\!\!2} \leq
                \left( \sum_{k=1}^n a_k^2 \right) \left( \sum_{k=1}^n b_k^2 \right)
                \) this my inline equation
            </p>
            
           <p>\( \left ( \frac{500}{100} \right )^2 \times = 105 mins   \)</p>
           
           
            <p> My Equation \(P(E) = {n \choose k} p^k (1-p)^{ n-k} \) </p>
            <p>
                \[ \frac{1}{2}=0.5 \]
            </p>
            
            <p>
                \[ \dfrac{ \tfrac{1}{2}[1-(\tfrac{1}{2})^n] }{ 1-\tfrac{1}{2} } = s_n   \]             
            </p>

            <h2>The probability of getting \(k\) heads when flipping \(n\) coins is:</h2>

            <p>\[P(E) = {n \choose k} p^k (1-p)^{ n-k} \]</p>

            <p>\[
                \frac{1}{(\sqrt{\phi \sqrt{5}}-\phi) e^{\frac25 \pi}} =
                1+\frac{e^{-2\pi}} {1+\frac{e^{-4\pi}} {1+\frac{e^{-6\pi}}
                {1+\frac{e^{-8\pi}} {1+\ldots} } } }
                \]</p>

            <p>\[
                1 +  \frac{q^2}{(1-q)}+\frac{q^6}{(1-q)(1-q^2)}+\cdots =
                \prod_{j=0}^{\infty}\frac{1}{(1-q^{5j+2})(1-q^{5j+3})},
                \quad\quad \text{for $|q|&lt;1$}.

                \]</p>



            <h2>Maxwell's Equations</h2>

            <p>
                \begin{align}
                \nabla \times \vec{\mathbf{B}} -\, \frac1c\, \frac{\partial\vec{\mathbf{E}}}{\partial t}  = \frac{4\pi}{c}\vec{\mathbf{j}} \\
                \nabla \cdot \vec{\mathbf{E}}  = 4 \pi \rho \\
                \nabla \times \vec{\mathbf{E}}\, +\, \frac1c\, \frac{\partial\vec{\mathbf{B}}}{\partial t}  = \vec{\mathbf{0}} \\
                \nabla \cdot \vec{\mathbf{B}}  = 0
                \end{align}
            </p>

            <h2>A Cross Product Formula</h2>


            <p>\begin{align}
                \mathbf{V}_1 \times \mathbf{V}_2 =
                \begin{vmatrix}
                \mathbf{i}  \mathbf{j}  \mathbf{k} \\
                \frac{\partial X}{\partial u}  \frac{\partial Y}{\partial u}  0 \\
                \frac{\partial X}{\partial v}  \frac{\partial Y}{\partial v}  0 \\
                \end{vmatrix}
                \end{align}
            </p>            

            <p>
            \begin{Bmatrix}
            x &amp; y \\
            z &amp; v
            \end{Bmatrix}
            </p>

            <p>
                Different Symbols
                \begin{Bmatrix}                
                \Alpha \Beta \Gamma \Delta \Epsilon \Zeta                
                \eta \theta \iota \kappa \lambda \mu
                \end{Bmatrix}    
            </p>
            \begin{Bmatrix}
            \big( \Big( \bigg( \Bigg( \dots \Bigg] \bigg] \Big] \big]
            \end{Bmatrix}
            
            <p>
            \begin{Bmatrix}
            a \qquad b
            \end{Bmatrix}
            </p>
            
            
            <p>
                \[\phi_n(\kappa) =
                 \frac{1}{4\pi^2\kappa^2} \int_0^\infty
                 \frac{\tan(\kappa R)}{\kappa R}
                 \frac{\partial}{\partial R}
                 \left[R^2\frac{\partial D_n(R)}{\partial R}\right]\,dR
            \]
            </p>
            
            <p>
                \[
                    S_{\text{new}} = S_{\text{old}} - \frac{ \left( 5-T \right) ^2} {2}
                \]
            </p>
            <p>
                \[            
                    \alpha \beta \gamma \delta \epsilon \zeta
                \]
            </p> 
            
            If an exposure time of 4 minutes was given for a 3 metre SFD for a particular exposure, what time would be required if a 6 metre SFD is used with out changing all other variables?
            
            <P>
                The relationship between gigabecquerels and curies is:
|a.	1Ci = 2.7 \(10^{10}\) GBq
|b.	1Ci = 3.7 \(10^{10}\) GBq
|c.	1Ci = 37 \(10^{9}\) GBq
|d.	1Ci = 10  GBq

            </P>
            
            
            
        </h:form>

    </ui:define>

</ui:composition>